package cn.nexttec.noteplayer.application

import android.app.Application
import androidx.appcompat.app.AppCompatDelegate
import cn.nexttec.noteplayer.service.FileScanService
import cn.nexttec.noteplayer.ui.widget.PopupDialog
import dagger.hilt.android.HiltAndroidApp

@HiltAndroidApp
class NotePlayerApp : Application() {

    companion object {
        lateinit var application: Application
    }

    override fun onCreate() {
        super.onCreate()
        AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO)
        FileScanService.bind(this)
        PopupDialog.init(this)
        application = this@NotePlayerApp

    }
}